package spring.boot.po;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;


public class Messages {
    private Integer au_id;
//    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date au_date;
    private String au_from;
    private String au_text;
    private String au_to;

    @Override
    public String toString() {
        return "Messages{" +
                "au_id=" + au_id +
                ", au_date=" + au_date +
                ", au_from='" + au_from + '\'' +
                ", au_text='" + au_text + '\'' +
                ", au_to='" + au_to + '\'' +
                '}';
    }

    public Integer getAu_id() {
        return au_id;
    }

    public void setAu_id(Integer au_id) {
        this.au_id = au_id;
    }

    public Date getAu_date() {
        return au_date;
    }

    public void setAu_date(Date au_date) {
        this.au_date = au_date;
    }

    public String getAu_from() {
        return au_from;
    }

    public void setAu_from(String au_from) {
        this.au_from = au_from;
    }

    public String getAu_text() {
        return au_text;
    }

    public void setAu_text(String au_text) {
        this.au_text = au_text;
    }

    public String getAu_to() {
        return au_to;
    }

    public void setAu_to(String au_to) {
        this.au_to = au_to;
    }

    public Messages(Integer au_id, Date au_date, String au_from, String au_text, String au_to) {
        this.au_id = au_id;
        this.au_date = au_date;
        this.au_from = au_from;
        this.au_text = au_text;
        this.au_to = au_to;
    }

    public Messages() {
    }
}
